<center>
<form method="post" id="gen_form">
	<input type="hidden" name="flowid" id="flowid" value="{$flowid}">
	<input type="hidden" name="action" id="action" value="setupfiles">
	<input type="hidden" name="sid" id="sid" value="{$sprojectid}">
	<input type="hidden" name="id" id="id" value="{$projectid}">
	<input type="hidden" name="update" id="update" value="">
	<table align="center" width="100%" border="0" cellpadding="0" cellspacing="0">
	
		<thead>
			<tr>
				<th>{$lang.team}</th>
				<th>{$lang.ready}</th>
				<th><img src="images/arrowdown.png" alt="" width="18" height="18" class="link" onclick="checkAll('teamid[]')"></th>
			</tr>
		</thead>
	
		{* TABLE BODY - DYNAMIC *}
		<tbody>
			{assign var="rowclass" value="uneven"}
			{foreach from=$list item=row}
				{eval var=$row.ready assign="st"}
				<tr class="{$rowclass}" {if $st eq 'yes'} style="font-weight: bold" {/if}>
					<td>{$row.team}</td>
					<td>{$lang.$st}</td>
					<td>
						<input type="checkbox" class="txt" name="teamid[]" id="teamid[]" value="{$row.teamid}" />
					</td> 
				</tr>
				{if $rowclass eq 'even'}
					{assign var="rowclass" value="uneven"}
				{else}
					{assign var="rowclass" value="even"}
				{/if}
			{/foreach}
		</tbody>
		
		<tfoot>
			<tr>
				<th colspan="3">
				{include file="button.tpl" name=$lang.generate action="processForm('gen_form')"}
				{include file="button.tpl" name=$lang.update action="document.getElementById('update').value='true';processForm('gen_form')"}
				{include file="button.tpl" name=$lang.back action="doProcess('back_form')"}
				</th>
			</tr>
		</tfoot>
	</table>
</form>
<center>

<form method="post" id="back_form">
	<input type="hidden" name="flowid" id="flowid" value="{$flowid}">
	<input type="hidden" name="action" id="action" value="spradmin">
	<input type="hidden" name="id" id="id" value="{$projectid}">	
</form>


